<template>
  <div>
    <div class="nav">
      <mt-button size="small" @click.native.prevent="active = 'tab-container1'" :class="{showBgc:active=='tab-container1'}">全部</mt-button>
      <mt-button size="small" @click.native.prevent="active = 'tab-container2'" :class="{showBgc:active=='tab-container2'}">待支付</mt-button>
      <mt-button size="small" @click.native.prevent="active = 'tab-container3'" :class="{showBgc:active=='tab-container3'}">待发货</mt-button>
      <mt-button size="small" @click.native.prevent="active = 'tab-container4'" :class="{showBgc:active=='tab-container4'}">待收货</mt-button>
    </div>
    
    <div class="page-tab-container">
      <mt-tab-container class="page-tabbar-tab-container" v-model="active" swipeable>
        <mt-tab-container-item id="tab-container1">
        	<!-- cell组件 -->
          <mt-cell v-for="n in 10" :key="n" title="tab-container 1"></mt-cell>
        </mt-tab-container-item>
        <mt-tab-container-item id="tab-container2">
        	<!-- cell组件 -->
          <mt-cell v-for="n in 15" :key="n" title="tab-container 2"></mt-cell>
        </mt-tab-container-item>
        <mt-tab-container-item id="tab-container3">
        	<!-- cell组件 -->
          <mt-cell v-for="n in 7" :key="n" title="tab-container 3"></mt-cell>
        </mt-tab-container-item>
        <mt-tab-container-item id="tab-container4">
        	<!-- cell组件 -->
          <mt-cell v-for="n in 7" :key="n" title="tab-container 4"></mt-cell>
        </mt-tab-container-item>
      </mt-tab-container>
    </div>
  </div>
</template>
 
<script>
export default {
  name: 'newgwcPage',
  data() {
    return {
      active: 'tab-container1'
    };
  }
};
</script>
 
<style lang="stylus" scoped>
    .nav
        padding: 10px
    .showBgc
        background #aad110
</style>